﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="Client.aspx.cs" Inherits="TimeWork.Client" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Bredcrumb" runat="server">
    <li><a href="#" class="report">Quản trị</a></li>>
    <li><a href="#">Quản lý đối tác</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<form id="Form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>   
    <h2>Danh sách đối tác</h2>
    <div class="list-staff">
        <asp:UpdatePanel ID="UpdatePanel" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GVListClient" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="ClientID" onrowdatabound="GVListStaff_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="Tên đối tác" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91">
                            <ItemTemplate>
                                <asp:HyperLink ID="hplClientName" runat="server" Text='<%# Eval("ClientName") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Địa chỉ" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblAddress" Text='<%# Eval("ClientAddress") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Người đại diện" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="txtDepartmentName" Text='<%# Eval("ClientNameContactPerson") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="insert-item">
        <asp:Button ID="btnAdd" runat="server" Text="Thêm mới" 
            CssClass="mybutton" onclick="btnAdd_Click" />
    </div>
    <br /><br />
    <div class="clear"></div> 
</form>
</asp:Content>
